<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <h3>查询所有用户</h3>
    <a href="${pageContext.request.contextPath}/user">查询所有的用户</a>

    <h3>2. 根据id查询用户</h3>
    <form action="${pageContext.request.contextPath}/user/getById">
        用户id:<input type="text" name="userId" /><br>
        <input type="submit" value="查询">
    </form>

    <h3>3. 根据用户名精确查询</h3>
    <form action="${pageContext.request.contextPath}/user/getByName">
        用户id:<input type="text" name="userName" /><br>
        <input type="submit" value="查询">
    </form>

    <h3>3. 根据用户名模糊查询</h3>
    <form action="${pageContext.request.contextPath}/user/getByLikeName">
        用户id:<input type="text" name="userLikeName" /><br>
        <input type="submit" value="查询">
    </form>

    <h3>4. 分页查询</h3>
    <a href="${pageContext.request.contextPath}/user/page/1">查询所有的用户</a>

    <h3>5.添加新用户</h3>
    <form action="${pageContext.request.contextPath}/user/save" method="post">
        用户名：<input type="text" name="username"><br>
        密码：<input type="password" name="password"><br>
        角色：
                <input type="radio" name="power" value="0">超级管理员<br>
                <input type="radio" name="power" value="1" checked>普通用户<br>
        <input type="submit">
    </form>
</body>
</html>
